class Box {
    double width, height, depth;

    double volume() {
        width = 10;
        height = 10;
        depth = 10;
        return width * height * depth;
    }
}

public class example3_8 {
    public static void main(String args[]) {
        Box box = new Box();
        double v;
        v = box.volume();
        System.out.println("体积为：" + v);
    }

}
